home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4375 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  784 b 

  1. Path: ix.netcom.com!netnews
  2. From: miker3@ix.netcom.com (Mike Rubenstein)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Multiple Labels in a #ifdef
  5. Date: Sun, 04 Feb 1996 00:42:07 GMT
  6. Organization: Netcom
  7. Message-ID: <311400a2.169183808@nntp.ix.netcom.com>
  8. References: <4erh8d$86u@ccnet2.ccnet.com>
  9. NNTP-Posting-Host: ix-dc15-14.ix.netcom.com
  10. X-NETCOM-Date: Sat Feb 03  4:41:48 PM PST 1996
  11. X-Newsreader: Forte Agent .99c/16.141
  12.  
  13. fladung@emf.net (Fast Eddie) wrote:
  14.  
  15. > Is is possible to use multiple labels in a #ifdef?
  16. > This is what I would like to do:
  17. > #ifdef (DEBUG1 | DEBUG2 | DEBUG3)
  18. > /* define something if DEBUG1 or DEBUG2 or DEBUG3 is defined */
  19. > #endif
  20.  
  21. What you want is
  22.  
  23.     #if defined DEBUG1 || defined DEBUG2 || defined DEBUG3
  24.     /* ... */
  25.     #endif
  26.  
  27.  
  28. Michael M Rubenstein
  29.